/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: lenovo
 * Date: 2022-08-09
 * Time: 12:32
 */
public class MyStackTest {
    public static void main(String[] args) {
        MyStack stack = new MyStack();
        stack.push(12);
        stack.push(23);
        stack.push(34);
        stack.push(45);
        stack.push(56);
        stack.push(67);
        int length = stack.size();//6
        System.out.println(length);
//        int val = stack.peek();
//        System.out.println(val);//67
//        int val2 = stack.pop();
//        System.out.println(val2);//67
        int index = stack.search(67);
        System.out.println(index);
//        stack.pop();
//        stack.pop();
//        stack.pop();
//        stack.pop();
//        stack.pop();
//        boolean flg = stack.isEmpty();
//        System.out.println(flg);
    }
}
